<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html>

<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<jsp:include page="/core/tool/resources.jsp"></jsp:include>
	<script src="./myacount.js"></script>

</head>

<body>

	<div id="toolbar">
	   <a class="easyui-linkbutton" iconCls="icon-add" onclick="$('#dg').edatagrid('addRow')">新增</a>
	   <a class="easyui-linkbutton" iconCls="icon-reload" onclick="loadData()">刷新</a>
       <a class="easyui-linkbutton" iconCls="icon-remove" onclick="$('#dg').edatagrid('destroyRow')">删除</a>
       <a class="easyui-linkbutton" iconCls="icon-undo" onclick="$('#dg').edatagrid('cancelRow')">取消</a>
       <a class="easyui-linkbutton" iconCls="icon-save" onclick="$('#dg').edatagrid('saveRow');">保存</a>
	</div>
	
	<table id="dg"
            data-options="toolbar:'#toolbar',editing:true, rownumbers:true,pagination:true, singleSelect:true, 
            sortOrder:'asc',sortName:'acountId', fit:true, pageSize:20">
        <thead>
            <tr>
           	 	<th data-options="field:'userId',width:80">用户ID</th>
           	 	<th data-options="field:'acountId',width:80" sortable="true">账户ID</th>
                <th data-options="field:'acountName',width:100, editor:'textbox'">账户名</th>
                <th data-options="field:'acountDesc',width:300, editor:'textbox'">账户说明</th>
               	<th data-options="field:'rowEdit',width:100, formconfig:{type:'linkbutton',onclick:'click_row_edit()',options:{iconCls:'icon-edit',text:'编辑'}}">子账户</th>
            </tr>
        </thead>
    </table>
	
</body>
</html>
